<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:utils="http://java.sun.com/jsf/composite/bookez/utils">

	<ui:composition>
		<h:form id="loginForm">
			<fieldset>
				<legend>#{cpContent['login.name']}</legend>
				<ol>
					<li>
						<h:outputLabel for="username" value="#{cpContent['login.username']}"></h:outputLabel>
						<h:inputText id="username" value="#{loginForm.username}"></h:inputText>
						<ui:remove><h:message for="username" styleClass="message error"></h:message></ui:remove>
						<utils:message forId="username"></utils:message>
					</li>			
					
					<li>
						<h:outputLabel for="password" value="#{cpContent['login.password']}"></h:outputLabel>
						<h:inputSecret id="password" value="#{loginForm.password}"></h:inputSecret>
						<h:message for="password" styleClass="message error"></h:message>
					</li>
				</ol>
			</fieldset>
			
			<fieldset class="submit">
				<h:commandButton value="#{cpContent['login.loginAction']}" action="#{loginForm.login}"></h:commandButton>
			</fieldset>
		</h:form>
	</ui:composition>
</html>